#ifndef MESHSET_H
#define MESHSET_H

#include <vector>

#include "utilities.h"
#include "config.h"

using namespace std;

class MeshSet
{
  protected:

    vector<unsigned long> vSet;
  
	unsigned int nSetID;

	unsigned int nSetType;
  
  public:

	MeshSet(unsigned int id, unsigned int type)// constructor
	  { nSetID = id; nSetType = type; vSet.clear(); };  

    int count() const { return vSet.size();};
	
	void Add( const int & num ) { vSet.push_back(num); };
	
	unsigned long  operator [](unsigned long idx) const { return vSet[idx]; };
	
	unsigned long & operator [](unsigned long idx) {return vSet[idx]; };
	
	unsigned int GetID() const { return nSetID; };
	
	unsigned int GetType() const { return nSetType; };
};

#endif // MESHSET_H